/* 页面容器 */
#section {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    color: #333;
}

/* 标题区 - 复刻官网蓝紫色渐变 */
.warning-header {
    background: linear-gradient(180deg, #54aaff 0%, #3a8ee6 100%);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 6px;
}
.warning-header h1 {
    font-size: 24px;
    color: #fff;
    margin: 0;
    font-weight: 600;
}
.warning-header p {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
    margin: 5px 0 0;
}

/* 反馈提示条 - 官网样式 */
.feedback-bar {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}
.feedback-bar a {
    color: #007bff;
    text-decoration: none;
}
.feedback-bar a:hover {
    text-decoration: underline;
}

/* 搜索筛选栏 - 官网布局 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.filter-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.filter-bar button {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.filter-bar button:hover {
    background: #005fc2;
}

/* 特性列表 - 官网网格布局 */
.warning-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* 特性卡片 - 官网样式复刻 */
.warning-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.warning-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}
.warning-item img {
    width: 48px;
    height: 48px;
    margin-right: 10px;
    flex-shrink: 0;
}
.item-info {
    flex: 1;
}
.item-info h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 600;
    line-height: 1.4;
}
.item-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.severity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    margin-top: 4px;
}
.severity-severe {
    background: #ff4d4f;
}
.severity-medium {
    background: #faad14;
}
.severity-low {
    background: #52c41a;
}

/* 弹窗 - 官网风格 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 400px;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.modal-content h2 {
    font-size: 18px;
    margin: 0 0 20px;
    font-weight: 600;
}
.modal-content label {
    display: block;
    margin: 10px 0 4px;
    font-size: 14px;
    color: #333;
}
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.modal-content textarea {
    height: 80px;
    resize: vertical;
}
.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn-save {
    background: #007bff;
    color: #fff;
}
.btn-save:hover {
    background: #005fc2;
}
.btn-close {
    background: #f5f5f5;
    color: #333;
}
.btn-close:hover {
    background: #eee;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }
    .filter-bar input {
        width: 100%;
    }
    .modal-content {
        width: 90%;
    }
}